package org.yanghaokun.user.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.yanghaokun.basic.domain.BaseDomain;

import java.util.Date;

@Data
public class User extends BaseDomain{
    private String username;
    private String email;
    private String phone;
    private String salt;
    private String password;
    private Integer age;
    private Integer state;
    private Long loginInfo_id;
    private LoginInfo loginInfo;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime = new Date();

}
